package com.gxa.hualian.dao.impl;

import com.gxa.hualian.dao.ManagerDao;
import com.gxa.hualian.entity.Manager;
import com.gxa.hualian.entity.User;
import com.gxa.hualian.util.StringUtil;

import java.util.List;
import java.util.Map;

public class ManagerDaoImpl extends BaseDaoImpl<Manager> implements ManagerDao {

    @Override
    public Manager selectByPhone(String phone) throws Exception {
        return super.selectByPhone(phone,Manager.class);
    }

    @Override
    public Integer inster(Manager manager) throws Exception {
        return super.insert(manager);
    }

    @Override
    public List<Manager> selectByPage(Integer page, Integer limit) throws Exception {
        return super.selectByPage(page,limit,Manager.class);
    }

    @Override
    public List<Manager> selectAll() throws Exception {
        return super.selectAll(Manager.class);
    }

    @Override
    public Boolean deleteByPhone(String phone) throws Exception {
        return super.deleteByName("phone",phone,Manager.class);
    }

    @Override
    public Integer update(Manager manager) throws Exception {
        return super.update("phone",manager.getPhone(),manager);
    }

    @Override
    public List<Manager> selectLikeName(Object value) throws Exception {
        return super.selectLikeName(value,Manager.class);
    }
}
